package com.woniuxy.dao;

import com.woniuxy.entity.RbacManager;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
public interface RbacManagerDao {
    int addOne(RbacManager rbacManager);

    int deleteOne(int id);

    int updateOne(RbacManager rbacManager);

    RbacManager findOne(int id);

    List<RbacManager> findAll(int currentPage, int pageSize);

    List<RbacManager> findOneByAccountAndStatus(String account, String status);

    //根据用户名查询用户
    RbacManager findUser(String username);

    //登录查询
    RbacManager login(String username, String password);

    List<RbacManager> findUserByInput(RbacManager rbacManager);
}